<template>
  <!-- 每个协会活动项 -->
  <view class="active-item">
    <view class="item-top">
      <image :src="active.avater" class="avater"></image>
      <text class="society">{{ active.society }}</text>
      <view class="tag">{{ active.tag }}</view>
    </view>
    <view class="item-bottom">{{ active.introduction }}</view>
  </view>
</template>

<script>
  export default {
    name: "my-active",
    data() {
      return {

      };
    },
    props: {
      // 协会活动信息
      active: {
        type: Object,
        default: {}
      }
    }
  }
</script>

<style lang="scss">
  .active-item {
    width: 100%;
    background-color: #fff;
    margin-top: 20rpx;
    border-radius: 24rpx;
    display: flex;
    flex-direction: column;
    padding: 30rpx 24rpx 60rpx 30rpx;
    font-size: 24rpx;

    .item-top {
      display: flex;
      align-items: center;
      margin-bottom: 36rpx;

      .avater {
        width: 85rpx;
        height: 85rpx;
        background-color: #e3e3e3;
        border-radius: 43rpx;
      }

      .society {
        font-size: 32rpx;
        font-weight: 600;
        margin: 0 13rpx 0 24rpx;
      }

      .tag {
        width: 78rpx;
        height: 38rpx;
        background-color: #CBE3FF;
        color: #0F7CFF;
        border-radius: 10rpx;
        font-weight: 600;
        text-align: center;
        line-height: 38rpx;
      }
    }

    .item-bottom {
      font-size: 28rpx;
      line-height: 22px;
    }
  }
</style>
